<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template basic_string</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.string_8hpp" title="Header &lt;boost/container/string.hpp&gt;">
<link rel="prev" href="structboost_1_1container_1_1pmr_1_1basic__string__of.html" title="Struct template basic_string_of">
<link rel="next" href="string_8hpp_1aa58e92daa0c494234e26f93e1a1b4d77.html" title="Type definition string">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1container_1_1pmr_1_1basic__string__of.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.string_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="string_8hpp_1aa58e92daa0c494234e26f93e1a1b4d77.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template basic_string</span></h2>
<p>boost::container::basic_string</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.string_8hpp" title="Header &lt;boost/container/string.hpp&gt;">boost/container/string.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span><span class="special">,</span> 
         <span class="keyword">typename</span> Allocator <span class="special">=</span> <span class="keyword">void</span><span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">:</span>
  <span class="keyword">private</span> <span class="identifier">dtl</span><span class="special">::</span><span class="identifier">basic_string_base</span><span class="special">&lt;</span> <span class="identifier">real_allocator</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&gt;</span>
<span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">Traits</span>                                                                  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a76cc6782c56647bd7337d2eb1ad2900e"></a><span class="identifier">traits_type</span><span class="special">;</span>           
  <span class="keyword">typedef</span> <span class="identifier">CharT</span>                                                                   <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a47826c69327bb16cf72078b17851da2b"></a><span class="identifier">value_type</span><span class="special">;</span>            
  <span class="keyword">typedef</span> <span class="identifier">real_allocator</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Allocator</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span>                                <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9a7989593fe351a504753aeea72b23ea"></a><span class="identifier">allocator_type</span><span class="special">;</span>        
  <span class="keyword">typedef</span> ::boost::container::allocator_traits<span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">pointer</span>         <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a800a06fc8cc8014b5ef6bb8746a25652"></a><span class="identifier">pointer</span><span class="special">;</span>               
  <span class="keyword">typedef</span> ::boost::container::allocator_traits<span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">const_pointer</span>   <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a623e03e9ede3774927c882e61fb9dd47"></a><span class="identifier">const_pointer</span><span class="special">;</span>         
  <span class="keyword">typedef</span> ::boost::container::allocator_traits<span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">reference</span>       <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae779443739d41a93e87efe0d20f0ad77"></a><span class="identifier">reference</span><span class="special">;</span>             
  <span class="keyword">typedef</span> ::boost::container::allocator_traits<span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9c75615b83c802faf4cd2236ea7bcb94"></a><span class="identifier">const_reference</span><span class="special">;</span>       
  <span class="keyword">typedef</span> ::boost::container::allocator_traits<span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">size_type</span>       <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8e1f768b72419bf777723ce6c3930489"></a><span class="identifier">size_type</span><span class="special">;</span>             
  <span class="keyword">typedef</span> ::boost::container::allocator_traits<span class="special">&lt;</span> <span class="identifier">allocator_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">difference_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0ea8c0db006206668e62ad2f47c64b11"></a><span class="identifier">difference_type</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <span class="identifier">implementation_defined</span>                                                  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aeb9787799ae71681f1965cfedce11440"></a><span class="identifier">stored_allocator_type</span><span class="special">;</span> 
  <span class="keyword">typedef</span> <span class="identifier">implementation_defined</span>                                                  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0f774c79f5feb5372490817618776975"></a><span class="identifier">iterator</span><span class="special">;</span>              
  <span class="keyword">typedef</span> <span class="identifier">implementation_defined</span>                                                  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5feab1f50bcf120649b889bb8871cecc"></a><span class="identifier">const_iterator</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">implementation_defined</span>                                                  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1d3c0e4005e55219a43100973b4e9da8"></a><span class="identifier">reverse_iterator</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">implementation_defined</span>                                                  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1acab2ec1f64d1915696565749dbf9c066"></a><span class="identifier">const_reverse_iterator</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1container_1_1basic__string.html#id127-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0bccb979f051e2f40e396c763b250d7a"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9bbb5908dbc1927924938cdbf01b8ae2"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a10e037904f7c864fad2da6878fae1cf2"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a755d15e6e2e459e4824c9d04397de63c"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> 
                          <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac805c93e48e179b72eb24529b13f75d9"><span class="identifier">basic_string</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab74c6e55dec8cd6fac7ca4a4e22840bb"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a03a176b13739004a85133f8753d20f23"><span class="identifier">basic_string</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5996145e811604e8097607c59ca7ab07"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac35753dee53dffc3727671a75e308ef8"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> 
               <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5732d44e48f71cc235db8e99d746877b"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a3751edacf4e85f0e7afbf5a089f29995"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a6303ce2a52cddeb50c79fd742e1570bc"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0b96def92a1286a3da79b3510ff7eed3"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9073baeca63e00556c852419c7faa11d"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1afe481efd48b2e7e8f83907c18d1bdde3"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2094e094f5377cb532afc231890e2f07"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a790c234b96b6f02a4a8722867e74f857"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a3b1dc647364f34d70af26522795e621b"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="identifier">InputIterator</span><span class="special">,</span> <span class="identifier">InputIterator</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a728ac28ceb648dadaa0149742756e82c"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="identifier">InputIterator</span><span class="special">,</span> <span class="identifier">InputIterator</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5f2932c4224692a70654da41c282a7f4"><span class="identifier">basic_string</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">value_type</span> <span class="special">&gt;</span><span class="special">,</span> 
               <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af170650c0b337d9008f6bf9d71365402"><span class="special">~</span><span class="identifier">basic_string</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a030e35c95ecd83ebac4e9aa887f40d09"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1afcdf8d1a72debadb51a816e587b330be"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a303fe4c375d47b58066dc96784e901b2"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a931d2873e540b8636a949ba34b7bb48d"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aec828daadec274b5d7f6453cc39061a0"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1ff8c7b405c3ded3e10c3ef202f5b16c"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">allocator_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a67f3aa4319f283e401dc78a8ce62c2cd"><span class="identifier">get_allocator</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">stored_allocator_type</span> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad835a240198ef12cb3e8dc18703e78a8"><span class="identifier">get_stored_allocator</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">const</span> <span class="identifier">stored_allocator_type</span> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a095f35509d145509d6d70a2f0efb5863"><span class="identifier">get_stored_allocator</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a6f83400c96bcb497680532f6f886f5a6"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a382f6ac8b142f737767dead6c8975ba4"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1b75987e47f0cfd26b53c4f8720586ad"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a75273d7c797079dcfe63207e254d51d8"><span class="identifier">rbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5c7efafbe413d6ad6388f54d6289bf43"><span class="identifier">rbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a49aa7a365ec5444b2d109a8894cff62d"><span class="identifier">rend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a27f5e86cde6f4cf193909c50f798801d"><span class="identifier">rend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2bdedce43166cd09624294597ef1474e"><span class="identifier">cbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a3a70143d8f5eb3c115a6c691b5f24900"><span class="identifier">cend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5e3e535a196d4613af3cac1c1ed34a21"><span class="identifier">crbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reverse_iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a265210cb603b0be0c2c78ba3b1af39cb"><span class="identifier">crend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af4ef26d0184bb176d99574b22bf3596a"><span class="identifier">empty</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac207b4a19e02b76dae4ec3d2794e859c"><span class="identifier">length</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a"><span class="identifier">max_size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a79258646d7d1042af6588effc4fd68cd"><span class="identifier">resize</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac79c1ddb29fdb8c152b4b366163b3791"><span class="identifier">resize</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a72eb96679d769a876968b74aa3d39494"><span class="identifier">resize</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af823c96592d31589c8a491d7ded6d608"><span class="identifier">capacity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a140dc58d2d17f66f21e20ee8e11a00d4"><span class="identifier">reserve</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa81ba79739b6152a58adb9ae4e79de7c"><span class="identifier">shrink_to_fit</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a50b981f497935231b1192509b7e8aa25"><span class="identifier">front</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reference</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0c4db1a4113c49dd776fe1c59a842e05"><span class="identifier">front</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a297fdd171e91dd68099ad9e45f5aae81"><span class="identifier">back</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reference</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8421da6c8873cbaeb522bf1f68e660d4"><span class="identifier">back</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a33f2f7592f7b4c84a290491b7147fbbb"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">const_reference</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4e03746168a2b4e265b882a3f6866731"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a680ee2e913028d11fb3d07807ae0051e"><span class="identifier">at</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">const_reference</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af9a8ec9f44c54df93157ac57faa0b239"><span class="identifier">at</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa276d8ad9afb27d8d170f2fecf01a51f"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5959561e1de267bcfa00b4e24239c036"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a7ab03fabd0fe4fe05d18d15bd4fe3dac"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ace8074b051986e6a0afc73e113db6a61"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0c78a652d4e574cf1c385c9733fdf960"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a19007e3a31b419cf60aa19f0704a7c60"><span class="identifier">append</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1adefdc681529452f13249e5c3d324ee57"><span class="identifier">append</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1abaa1fdd7aa947ad7fd8a34c22c92a77e"><span class="identifier">append</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af6d2366f6948f2533c1ff53ecb3b039f"><span class="identifier">append</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae28db776dac2f71fd997500e51501e78"><span class="identifier">append</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a84ad2cf277f68223d18cb6da5e7b7a2e"><span class="identifier">append</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIter<span class="special">&gt;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1acdb469c79e91e1e62dea60d0109aa54f"><span class="identifier">append</span></a><span class="special">(</span><span class="identifier">InputIter</span><span class="special">,</span> <span class="identifier">InputIter</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a7781ab638c47331966a1c6f8015bb66e"><span class="identifier">append</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aacd1dffcfdbb315284c9721a15d76354"><span class="identifier">push_back</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad98130c078dbc4476f514fc34cd214be"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a93f5e044c9c41e02a588eae28fe0d974"><span class="identifier">assign</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5369b8a596e8fbe4d5e6a7380d40d6a4"><span class="identifier">assign</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa9f27ffbc8e230cdcd46e6e5b0824f0b"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a43a05676955a234fd5f55afa01af6b64"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a44d637aa886a8553b481c6ace94f7d13"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a518569ac1a8ab262e58d8c249b7857ca"><span class="identifier">assign</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1adc98d918f99c5c17776b78cd04b0ac26"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIter<span class="special">&gt;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae38f0b993a8641ec6100956714f19503"><span class="identifier">assign</span></a><span class="special">(</span><span class="identifier">InputIter</span><span class="special">,</span> <span class="identifier">InputIter</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a6de78735bc30478251e59d5f5505d7fc"><span class="identifier">assign</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1afb3335f2b7c496d095350ac751a39b05"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a99c3b7832690acb9ebcf6c04752e61de"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa28a13a985b9aa00b6c2431d8badec32"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aaf1ec786e42c459bf43726f31820d743"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a300fbbcd864693945c1b648fc6510398"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1adb21a2a2d48df92949d9d0ba626fbbff"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aef4cb68379e09b7d7472e556a8e33c04"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a58538f044afd349eef3765a3ae048e12"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIter<span class="special">&gt;</span> 
    <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0ee0dea8c4d590dc910ec6acf3616df4"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">InputIter</span><span class="special">,</span> <span class="identifier">InputIter</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1adeeb2fa1083100ac9bb6943499af8406"><span class="identifier">insert</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a3bf85785912dced99ea506dc7f7af105"><span class="identifier">pop_back</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad084578a60ca08c24b5d3f3e9bd87deb"><span class="identifier">erase</span></a><span class="special">(</span><span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a36ecad6e4af83e9a9129a9feed05509b"><span class="identifier">erase</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4898d74753435e5c76729be312ef25e7"><span class="identifier">erase</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a143675ee52415e691db95ccb03e129e5"><span class="identifier">clear</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa46338aac04ac428ab28d35b0bd553d8"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae646e9fcbf7b4717262cd85f43f6d61a"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac518429c74385477a832970ef7dad8ed"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> 
          <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a69ca4fd471c55ef5f68e3f1892bb5837"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> 
            <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1e9f5de5b1939048d4f4b2070864f4bc"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a46d0d5f15f86450ef07636019c5c58df"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1fdc71ecb55a77b0202eb1399580cb2f"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2438f915da7b121258ef2d2ac019f52a"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab934c590a2bea5087c23c24514ea9be3"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a88979bb52e7803a569eac8c0ba8557dd"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af57ebcf9b395e120e8b75a48d1c44b71"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIter<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aee9ab9c909bbcaaf9ae5ad45c2f9c5e0"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">InputIter</span><span class="special">,</span> <span class="identifier">InputIter</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8707c5c563d08f373379de257fc6c0a0"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1f0d5446b6e2056b5d7728e58ea99435"><span class="identifier">replace</span></a><span class="special">(</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9773cbe87057ffe335b65be11c07aed0"><span class="identifier">copy</span></a><span class="special">(</span><span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a79eadae04fe74747fd439752a84850cf"><span class="identifier">swap</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a029c198c13152631d6e7de5b1d82b5a3"><span class="identifier">c_str</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a36bd799fe07e736b5e7076128240c04a"><span class="identifier">data</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">CharT</span> <span class="special">*</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a55bacf909bddc52215167e54ece54c47"><span class="identifier">data</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a43dab6350c875bd5b6a22e287b0e71f3"><span class="keyword">operator</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> BasicStringView<span class="special">&gt;</span> <span class="identifier">BasicStringView</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af3fdb73c887926c17ad3242820282293"><span class="identifier">to_view</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a7e73a197810b276f3af5370cceb90d6b"><span class="identifier">find</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa0b069612b8808fee94f8e657a76ad4e"><span class="identifier">find</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a84741f764f00db7dcc10044f65aa8fce"><span class="identifier">find</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a7c9565fbfe18a180a306b7568706f203"><span class="identifier">find</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2ed303955561c03a2acd7c1376e594f3"><span class="identifier">find</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aad4b729ba74a7485917aeac6886197be"><span class="identifier">rfind</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae5af62216970dce6b723fd0b57c26db5"><span class="identifier">rfind</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a700b38add0aec6b32e093bc77aa283d7"><span class="identifier">rfind</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae25e4594cfc1a913ffed0d451306b1b2"><span class="identifier">rfind</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a6fce81f34ee2881f6c385eeaaab958b5"><span class="identifier">rfind</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5739fa86a27e4b29292ccb8b0311c7a3"><span class="identifier">find_first_of</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae176b84c2e09735e1ed2af934f7cbf89"><span class="identifier">find_first_of</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab1f6235d5c289bba2000cf9a1d3b3d99"><span class="identifier">find_first_of</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab3ade04b7fbcf346cf384637d4355fab"><span class="identifier">find_first_of</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a394fb9a6fca0b6b64bf4ed3ddcf10843"><span class="identifier">find_first_of</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab2f6805128bde2c0fbfc5ae319f1ded4"><span class="identifier">find_last_of</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4fabd0246833f39e43ffe86711d88b8c"><span class="identifier">find_last_of</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aed483069bb541560d3d980a55e63b369"><span class="identifier">find_last_of</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1afbf884217326ef49218530e674000e79"><span class="identifier">find_last_of</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae7151e5ada2de1add9192761efeb2c72"><span class="identifier">find_last_of</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a39ab203973be77c88548e19e0abf79aa"><span class="identifier">find_first_not_of</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4e7f8c9a2ec8716778625ad37274fdb8"><span class="identifier">find_first_not_of</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> 
                                <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a88e52daa830b4dae3ff6c49ba1aa6ec3"><span class="identifier">find_first_not_of</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2fbc504acf66988476eb3b0ccd3624ab"><span class="identifier">find_first_not_of</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4a76bd8e5276749ffaef79ddf934e990"><span class="identifier">find_first_not_of</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a86888c062a5cf816bcc1923fd1dd07ed"><span class="identifier">find_last_not_of</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aef2daa5d85ca539ef4ec970e53c51095"><span class="identifier">find_last_not_of</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> 
                               <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5f9d00dd91423c540559b39b435d9ee9"><span class="identifier">find_last_not_of</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac9cde767c9d6caa4fbde0673e8cdea4a"><span class="identifier">find_last_not_of</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a06d65b1a8beca0b0f7588e54c4ab8d72"><span class="identifier">find_last_not_of</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9e1cafccf4df6c8d6dc9a1442808665c"><span class="identifier">substr</span></a><span class="special">(</span><span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a12b4a4bdf398ca3775b30e9e105642f0"><span class="identifier">compare</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a525b923758190dd5f4c02e00e2528a98"><span class="identifier">compare</span></a><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8fa3439729d8a26caae78581b832fe6c"><span class="identifier">compare</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2a733082f2434674a292e8bff0eb874e"><span class="identifier">compare</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a221da0d60dbdd5475ed113abaf547398"><span class="identifier">compare</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> 
              <span class="identifier">size_type</span> <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
    <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a953ef6d418518d4fd5e6a262cba791a3"><span class="identifier">compare</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">,</span> 
                <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac6d9dd47f1d20f568819e07a10518e6a"><span class="identifier">compare</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8c69b162bdc6612fa337e16ca7e9970c"><span class="identifier">compare</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9d488afbf7fb5a3081a6cf3f2d65422e"><span class="identifier">compare</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="identifier">BOOST_STATIC_CONSTEXPR</span> <span class="identifier">size_type</span> <span class="identifier">npos</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.8.14.42.3.4"></a><h2>Description</h2>
<p>The <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> class represents a Sequence of characters. It contains all the usual operations of a Sequence, and, additionally, it contains standard string operations such as search and concatenation.</p>
<p>The <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> class is parameterized by character type, and by that type's Character Traits.</p>
<p>This class has performance characteristics very much like vector&lt;&gt;, meaning, for example, that it does not perform reference-count or copy-on-write, and that concatenation of two strings is an O(N) operation.</p>
<p>Some of <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a>'s member functions use an unusual method of specifying positions and ranges. In addition to the conventional method using iterators, many of <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a>'s member functions use a single value pos of type size_type to represent a position (in which case the position is <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a> + pos, and many of <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a>'s member functions use two values, pos and n, to represent a range. In that case pos is the beginning of the range and n is its size. That is, the range is [<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a> + pos, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a> + pos + n).</p>
<p>Note that the C++ standard does not specify the complexity of <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> operations. In this implementation, <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> has performance characteristics very similar to those of vector: access to a single character is O(1), while copy and concatenation are O(N).</p>
<p>In this implementation, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a382f6ac8b142f737767dead6c8975ba4">end()</a>, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a75273d7c797079dcfe63207e254d51d8">rbegin()</a>, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a49aa7a365ec5444b2d109a8894cff62d">rend()</a>, operator[], <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a029c198c13152631d6e7de5b1d82b5a3">c_str()</a>, and <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a55bacf909bddc52215167e54ece54c47">data()</a> do not invalidate iterators. In this implementation, iterators are only invalidated by member functions that explicitly change the string's contents.</p>
<p>
</p>
<div class="refsect2">
<a name="id-1.3.8.14.42.3.4.9"></a><h3>Template Parameters</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> CharT</pre>
<p>The type of character it contains. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> Traits <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span></pre>
<p>The Character Traits type, which encapsulates basic character operations </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> Allocator <span class="special">=</span> <span class="keyword">void</span></pre>
<p>The allocator, used for internal memory management. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.8.14.42.3.4.10"></a><h3>
<a name="id127-bb"></a><code class="computeroutput">basic_string</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0bccb979f051e2f40e396c763b250d7a"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Default constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a>.</p>
<p><span class="bold"><strong>Throws</strong></span>: If allocator_type's default constructor throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9bbb5908dbc1927924938cdbf01b8ae2"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> taking the allocator as parameter.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a10e037904f7c864fad2da6878fae1cf2"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copy constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a>.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: x == *this.</p>
<p><span class="bold"><strong>Throws</strong></span>: If allocator_type's default constructor or allocation throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a755d15e6e2e459e4824c9d04397de63c"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> 
                        <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Same as <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a>(sv.data(), sv.size(), a).</p>
<p><span class="bold"><strong>Throws</strong></span>: If allocator_type's default constructor or allocation throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac805c93e48e179b72eb24529b13f75d9"></a><span class="identifier">basic_string</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;&amp;</span> s<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Move constructor. Moves s's resources to *this.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab74c6e55dec8cd6fac7ca4a4e22840bb"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copy constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> using the specified allocator.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: x == *this.</p>
<p><span class="bold"><strong>Throws</strong></span>: If allocation throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a03a176b13739004a85133f8753d20f23"></a><span class="identifier">basic_string</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;&amp;</span> s<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Move constructor using the specified allocator. Moves s's resources to *this.</p>
<p><span class="bold"><strong>Throws</strong></span>: If allocation throws.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant if a == s.get_allocator(), linear otherwise. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5996145e811604e8097607c59ca7ab07"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> with a default-constructed allocator, and is initialized by a specific number of characters of the s string. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac35753dee53dffc3727671a75e308ef8"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">,</span> 
             <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> taking the allocator as parameter, and is initialized by a specific number of characters of the s string. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5732d44e48f71cc235db8e99d746877b"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> taking a default-constructed allocator, and is initialized by a specific number of characters of the s c-string. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a3751edacf4e85f0e7afbf5a089f29995"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> taking the allocator as parameter, and is initialized by a specific number of characters of the s c-string. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a6303ce2a52cddeb50c79fd742e1570bc"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> with a default-constructed allocator, and is initialized by the null-terminated s c-string. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0b96def92a1286a3da79b3510ff7eed3"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> taking the allocator as parameter, and is initialized by the null-terminated s c-string. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9073baeca63e00556c852419c7faa11d"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> with a default-constructed allocator, and is initialized by n copies of c. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1afe481efd48b2e7e8f83907c18d1bdde3"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> taking the allocator as parameter, and is initialized by n copies of c. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2094e094f5377cb532afc231890e2f07"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> with a default-constructed allocator, and is initialized by n default-initialized characters. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a790c234b96b6f02a4a8722867e74f857"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> taking the allocator as parameter, and is initialized by n default-initialized characters. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a3b1dc647364f34d70af26522795e621b"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="identifier">InputIterator</span> f<span class="special">,</span> <span class="identifier">InputIterator</span> l<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> with a default-constructed allocator, and a range of iterators. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIterator<span class="special">&gt;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a728ac28ceb648dadaa0149742756e82c"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="identifier">InputIterator</span> f<span class="special">,</span> <span class="identifier">InputIterator</span> l<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Constructs a <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> taking the allocator as parameter, and a range of iterators. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5f2932c4224692a70654da41c282a7f4"></a><span class="identifier">basic_string</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">value_type</span> <span class="special">&gt;</span> il<span class="special">,</span> 
             <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Same as <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a>(il.begin(), il.end(), a). </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af170650c0b337d9008f6bf9d71365402"></a><span class="special">~</span><span class="identifier">basic_string</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Destroys the <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a>. All used memory is deallocated.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a030e35c95ecd83ebac4e9aa887f40d09"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Copy constructs a string.</p>
<p><span class="bold"><strong>Postcondition</strong></span>: x == *this.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear to the elements x contains. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1afcdf8d1a72debadb51a816e587b330be"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Move constructor. Moves x's resources to *this.</p>
<p><span class="bold"><strong>Throws</strong></span>: If allocator_traits_type::propagate_on_container_move_assignment is false and allocation throws</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant if allocator_traits_type:: propagate_on_container_move_assignment is true or this-&gt;get&gt;allocator() == x.get_allocator(). Linear otherwise. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a303fe4c375d47b58066dc96784e901b2"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Assignment from a null-terminated c-string. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a931d2873e540b8636a949ba34b7bb48d"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns *this = basic_string(1, c). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aec828daadec274b5d7f6453cc39061a0"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to return assign(sv). </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1ff8c7b405c3ded3e10c3ef202f5b16c"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns *this = basic_string(il); </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">allocator_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a67f3aa4319f283e401dc78a8ce62c2cd"></a><span class="identifier">get_allocator</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a copy of the internal allocator.</p>
<p><span class="bold"><strong>Throws</strong></span>: If allocator's copy constructor throws.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">stored_allocator_type</span> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad835a240198ef12cb3e8dc18703e78a8"></a><span class="identifier">get_stored_allocator</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a reference to the internal allocator.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant.</p>
<p><span class="bold"><strong>Note</strong></span>: Non-standard extension. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">const</span> <span class="identifier">stored_allocator_type</span> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a095f35509d145509d6d70a2f0efb5863"></a><span class="identifier">get_stored_allocator</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a reference to the internal allocator.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant.</p>
<p><span class="bold"><strong>Note</strong></span>: Non-standard extension. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns an iterator to the first element contained in the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a6f83400c96bcb497680532f6f886f5a6"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_iterator to the first element contained in the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a382f6ac8b142f737767dead6c8975ba4"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns an iterator to the end of the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1b75987e47f0cfd26b53c4f8720586ad"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_iterator to the end of the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a75273d7c797079dcfe63207e254d51d8"></a><span class="identifier">rbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a reverse_iterator pointing to the beginning of the reversed vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5c7efafbe413d6ad6388f54d6289bf43"></a><span class="identifier">rbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_reverse_iterator pointing to the beginning of the reversed vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a49aa7a365ec5444b2d109a8894cff62d"></a><span class="identifier">rend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a reverse_iterator pointing to the end of the reversed vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a27f5e86cde6f4cf193909c50f798801d"></a><span class="identifier">rend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_reverse_iterator pointing to the end of the reversed vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2bdedce43166cd09624294597ef1474e"></a><span class="identifier">cbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_iterator to the first element contained in the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a3a70143d8f5eb3c115a6c691b5f24900"></a><span class="identifier">cend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_iterator to the end of the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5e3e535a196d4613af3cac1c1ed34a21"></a><span class="identifier">crbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_reverse_iterator pointing to the beginning of the reversed vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reverse_iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a265210cb603b0be0c2c78ba3b1af39cb"></a><span class="identifier">crend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const_reverse_iterator pointing to the end of the reversed vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af4ef26d0184bb176d99574b22bf3596a"></a><span class="identifier">empty</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns true if the vector contains no elements.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns the number of the elements contained in the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac207b4a19e02b76dae4ec3d2794e859c"></a><span class="identifier">length</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns the number of the elements contained in the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a"></a><span class="identifier">max_size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns the largest possible size of the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a79258646d7d1042af6588effc4fd68cd"></a><span class="identifier">resize</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Inserts or erases elements at the end such that the size becomes n. New elements are copy constructed from x.</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear to the difference between <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and new_size. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac79c1ddb29fdb8c152b4b366163b3791"></a><span class="identifier">resize</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Inserts or erases elements at the end such that the size becomes n. New elements are value initialized.</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear to the difference between <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and new_size. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a72eb96679d769a876968b74aa3d39494"></a><span class="identifier">resize</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Inserts or erases elements at the end such that the size becomes n. New elements are uninitialized.</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear to the difference between <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and new_size.</p>
<p><span class="bold"><strong>Note</strong></span>: Non-standard extension </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af823c96592d31589c8a491d7ded6d608"></a><span class="identifier">capacity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Number of elements for which memory has been allocated. <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af823c96592d31589c8a491d7ded6d608">capacity()</a> is always greater than or equal to <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a140dc58d2d17f66f21e20ee8e11a00d4"></a><span class="identifier">reserve</span><span class="special">(</span><span class="identifier">size_type</span> res_arg<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: If n is less than or equal to <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af823c96592d31589c8a491d7ded6d608">capacity()</a>, this call has no effect. Otherwise, it is a request for allocation of additional memory. If the request is successful, then <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af823c96592d31589c8a491d7ded6d608">capacity()</a> is greater than or equal to n; otherwise, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af823c96592d31589c8a491d7ded6d608">capacity()</a> is unchanged. In either case, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> is unchanged.</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation allocation throws </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa81ba79739b6152a58adb9ae4e79de7c"></a><span class="identifier">shrink_to_fit</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Tries to deallocate the excess of memory created with previous allocations. The size of the string is unchanged</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear to <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a50b981f497935231b1192509b7e8aa25"></a><span class="identifier">front</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: !empty()</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a reference to the first element of the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0c4db1a4113c49dd776fe1c59a842e05"></a><span class="identifier">front</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: !empty()</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const reference to the first element of the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a297fdd171e91dd68099ad9e45f5aae81"></a><span class="identifier">back</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: !empty()</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a reference to the last element of the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8421da6c8873cbaeb522bf1f68e660d4"></a><span class="identifier">back</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: !empty()</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const reference to the last element of the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a33f2f7592f7b4c84a290491b7147fbbb"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> &gt; n.</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a reference to the nth element from the beginning of the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4e03746168a2b4e265b882a3f6866731"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> &gt; n.</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const reference to the nth element from the beginning of the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a680ee2e913028d11fb3d07807ae0051e"></a><span class="identifier">at</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> &gt; n.</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a reference to the nth element from the beginning of the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: range_error if n &gt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_reference</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af9a8ec9f44c54df93157ac57faa0b239"></a><span class="identifier">at</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> &gt; n.</p>
<p><span class="bold"><strong>Effects</strong></span>: Returns a const reference to the nth element from the beginning of the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: range_error if n &gt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa276d8ad9afb27d8d170f2fecf01a51f"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Calls append(str.data, str.size()).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5959561e1de267bcfa00b4e24239c036"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Same as <code class="computeroutput">return append(sv)</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a7ab03fabd0fe4fe05d18d15bd4fe3dac"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Calls append(s).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ace8074b051986e6a0afc73e113db6a61"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Calls append(1, c).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0c78a652d4e574cf1c385c9733fdf960"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns append(il) </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a19007e3a31b419cf60aa19f0704a7c60"></a><span class="identifier">append</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Calls append(str.data(), str.size()).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1adefdc681529452f13249e5c3d324ee57"></a><span class="identifier">append</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Same as return append(sv.data(), sv.size()). </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1abaa1fdd7aa947ad7fd8a34c22c92a77e"></a><span class="identifier">append</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos &lt;= str.size()</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to append as the smaller of n and str.size() - pos and calls append(str.data() + pos, rlen).</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws and out_of_range if pos &gt; str.size()</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af6d2366f6948f2533c1ff53ecb3b039f"></a><span class="identifier">append</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least n elements of CharT.</p>
<p><span class="bold"><strong>Effects</strong></span>: The function replaces the string controlled by *this with a string of length <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> + n whose irst <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> elements are a copy of the original string controlled by *this and whose remaining elements are a copy of the initial n elements of s.</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws length_error if <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> + n &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae28db776dac2f71fd997500e51501e78"></a><span class="identifier">append</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls append(s, traits::length(s)).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a84ad2cf277f68223d18cb6da5e7b7a2e"></a><span class="identifier">append</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to append(basic_string(n, c)).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIter<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1acdb469c79e91e1e62dea60d0109aa54f"></a><span class="identifier">append</span><span class="special">(</span><span class="identifier">InputIter</span> first<span class="special">,</span> <span class="identifier">InputIter</span> last<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: [first,last) is a valid range.</p>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to append(basic_string(first, last)).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a7781ab638c47331966a1c6f8015bb66e"></a><span class="identifier">append</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns append(il.begin(), il.size()). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aacd1dffcfdbb315284c9721a15d76354"></a><span class="identifier">push_back</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to append(static_cast&lt;size_type&gt;(1), c). </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad98130c078dbc4476f514fc34cd214be"></a><span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to assign(str, 0, npos).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a93f5e044c9c41e02a588eae28fe0d974"></a><span class="identifier">assign</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to return assign(sv.data(), sv.size()).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5369b8a596e8fbe4d5e6a7380d40d6a4"></a><span class="identifier">assign</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;&amp;</span> ms<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: The function replaces the string controlled by *this with a string of length str.size() whose elements are a copy of the string controlled by str. Leaves str in a valid but unspecified state.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa9f27ffbc8e230cdcd46e6e5b0824f0b"></a><span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos &lt;= str.size()</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to assign as the smaller of n and str.size() - pos and calls assign(str.data() + pos rlen).</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws or out_of_range if pos &gt; str.size().</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a43a05676955a234fd5f55afa01af6b64"></a><span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least n elements of CharT.</p>
<p><span class="bold"><strong>Effects</strong></span>: Replaces the string controlled by *this with a string of length n whose elements are a copy of those pointed to by s.</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws or length_error if n &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a44d637aa886a8553b481c6ace94f7d13"></a><span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls assign(s, traits::length(s)).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a518569ac1a8ab262e58d8c249b7857ca"></a><span class="identifier">assign</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to assign(basic_string(n, c)).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1adc98d918f99c5c17776b78cd04b0ac26"></a><span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> first<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> last<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to assign(basic_string(first, last)).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIter<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae38f0b993a8641ec6100956714f19503"></a><span class="identifier">assign</span><span class="special">(</span><span class="identifier">InputIter</span> first<span class="special">,</span> <span class="identifier">InputIter</span> last<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to assign(basic_string(first, last)).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a6de78735bc30478251e59d5f5505d7fc"></a><span class="identifier">assign</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Returns assign(il.begin(), il.size()). </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1afb3335f2b7c496d095350ac751a39b05"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls insert(pos, str.data(), str.size()).</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws or out_of_range if pos &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a99c3b7832690acb9ebcf6c04752e61de"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos2<span class="special">,</span> 
       <span class="identifier">size_type</span> n <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and pos2 &lt;= str.size()</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to insert as the smaller of n and str.size() - pos2 and calls insert(pos1, str.data() + pos2, rlen).</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws or out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or pos2 &gt; str.size().</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa28a13a985b9aa00b6c2431d8badec32"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least n elements of CharT and pos &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Effects</strong></span>: Replaces the string controlled by *this with a string of length <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> + n whose first pos elements are a copy of the initial elements of the original string controlled by *this and whose next n elements are a copy of the elements in s and whose remaining elements are a copy of the remaining elements of the original string controlled by *this.</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws, out_of_range if pos &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or length_error if <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> + n &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aaf1ec786e42c459bf43726f31820d743"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and s points to an array of at least traits::length(s) + 1 elements of CharT</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls insert(pos, s, traits::length(s)).</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws, out_of_range if pos &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> length_error if <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a> - Traits::length(s)</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a300fbbcd864693945c1b648fc6510398"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to insert(pos, basic_string(n, c)).</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws, out_of_range if pos &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> length_error if <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a> - n</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1adb21a2a2d48df92949d9d0ba626fbbff"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Same as <code class="computeroutput">return insert(pos, sv.data(), sv.size())</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aef4cb68379e09b7d7472e556a8e33c04"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> p<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: p is a valid iterator on *this.</p>
<p><span class="bold"><strong>Effects</strong></span>: inserts a copy of c before the character referred to by p.</p>
<p><span class="bold"><strong>Returns</strong></span>: An iterator which refers to the copy of the inserted character. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a58538f044afd349eef3765a3ae048e12"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> p<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: p is a valid iterator on *this.</p>
<p><span class="bold"><strong>Effects</strong></span>: Inserts n copies of c before the character referred to by p.</p>
<p><span class="bold"><strong>Returns</strong></span>: an iterator to the first inserted element or p if n is 0. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIter<span class="special">&gt;</span> 
  <span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a0ee0dea8c4d590dc910ec6acf3616df4"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> p<span class="special">,</span> <span class="identifier">InputIter</span> first<span class="special">,</span> <span class="identifier">InputIter</span> last<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: p is a valid iterator on *this. [first,last) is a valid range.</p>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to insert(p - <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, basic_string(first, last)).</p>
<p><span class="bold"><strong>Returns</strong></span>: an iterator to the first inserted element or p if first == last. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1adeeb2fa1083100ac9bb6943499af8406"></a><span class="identifier">insert</span><span class="special">(</span><span class="identifier">const_iterator</span> p<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: As if by insert(p, il.begin(), il.end()).</p>
<p><span class="bold"><strong>Returns</strong></span>: An iterator which refers to the copy of the first inserted character, or p if i1 is empty. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a3bf85785912dced99ea506dc7f7af105"></a><span class="identifier">pop_back</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Removes the last element from the container.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Constant time. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad084578a60ca08c24b5d3f3e9bd87deb"></a><span class="identifier">erase</span><span class="special">(</span><span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">size_type</span> n <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length xlen of the string to be removed as the smaller of n and <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - pos. The function then replaces the string controlled by *this with a string of length <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - xlen whose first pos elements are a copy of the initial elements of the original string controlled by *this, and whose remaining elements are a copy of the elements of the original string controlled by *this beginning at position pos + xlen.</p>
<p><span class="bold"><strong>Throws</strong></span>: out_of_range if pos &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a36ecad6e4af83e9a9129a9feed05509b"></a><span class="identifier">erase</span><span class="special">(</span><span class="identifier">const_iterator</span> p<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Removes the character referred to by p.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: An iterator which points to the element immediately following p prior to the element being erased. If no such element exists, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a382f6ac8b142f737767dead6c8975ba4">end()</a> is returned. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4898d74753435e5c76729be312ef25e7"></a><span class="identifier">erase</span><span class="special">(</span><span class="identifier">const_iterator</span> first<span class="special">,</span> <span class="identifier">const_iterator</span> last<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: first and last are valid iterators on *this, defining a range [first,last).</p>
<p><span class="bold"><strong>Effects</strong></span>: Removes the characters in the range [first,last).</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: An iterator which points to the element pointed to by last prior to the other elements being erased. If no such element exists, <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a382f6ac8b142f737767dead6c8975ba4">end()</a> is returned. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a143675ee52415e691db95ccb03e129e5"></a><span class="identifier">clear</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Erases all the elements of the vector.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing.</p>
<p><span class="bold"><strong>Complexity</strong></span>: Linear to the number of elements in the vector. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa46338aac04ac428ab28d35b0bd553d8"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls replace(pos1, n1, str.data(), str.size()).</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws or out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae646e9fcbf7b4717262cd85f43f6d61a"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Calls <code class="computeroutput">return replace(pos1, n1, sv.data(), sv.size());</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac518429c74385477a832970ef7dad8ed"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">,</span> 
        <span class="identifier">size_type</span> pos2<span class="special">,</span> <span class="identifier">size_type</span> n2 <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and pos2 &lt;= str.size().</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to be inserted as the smaller of n2 and str.size() - pos2 and calls replace(pos1, n1, str.data() + pos2, rlen).</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws, out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or pos2 &gt; str.size().</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a69ca4fd471c55ef5f68e3f1892bb5837"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> 
          <span class="identifier">size_type</span> pos2<span class="special">,</span> <span class="identifier">size_type</span> n2 <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Throws</strong></span>: out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or pos2 &gt; sv.size().</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to be inserted as the smaller of n2 and sv.size() - pos2 and calls <code class="computeroutput">replace(pos1, n1, sv.data() + pos2, rlen)</code>.</p>
<p><span class="bold"><strong>Returns</strong></span>: *this. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1e9f5de5b1939048d4f4b2070864f4bc"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n2<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and s points to an array of at least n2 elements of CharT.</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length xlen of the string to be removed as the smaller of n1 and <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - pos1. If <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - xlen &gt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a> - n2 throws length_error. Otherwise, the function replaces the string controlled by *this with a string of length <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - xlen + n2 whose first pos1 elements are a copy of the initial elements of the original string controlled by *this, whose next n2 elements are a copy of the initial n2 elements of s, and whose remaining elements are a copy of the elements of the original string controlled by *this beginning at position pos + xlen.</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws, out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or length_error if the length of the resulting string would exceed <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a></p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a46d0d5f15f86450ef07636019c5c58df"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and s points to an array of at least n2 elements of CharT.</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length xlen of the string to be removed as the smaller of n1 and <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - pos1. If <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - xlen &gt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a> - n2 throws length_error. Otherwise, the function replaces the string controlled by *this with a string of length <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - xlen + n2 whose first pos1 elements are a copy of the initial elements of the original string controlled by *this, whose next n2 elements are a copy of the initial n2 elements of s, and whose remaining elements are a copy of the elements of the original string controlled by *this beginning at position pos + xlen.</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws, out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or length_error if the length of the resulting string would exceed <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a></p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1fdc71ecb55a77b0202eb1399580cb2f"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="identifier">size_type</span> n2<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Effects</strong></span>: Equivalent to replace(pos1, n1, basic_string(n2, c)).</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws, out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or length_error if the length of the resulting string would exceed <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a136e6b12693966fed37f73111d9fb72a">max_size()</a></p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2438f915da7b121258ef2d2ac019f52a"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">const_iterator</span> i1<span class="special">,</span> <span class="identifier">const_iterator</span> i2<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: [<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>,i1) and [i1,i2) are valid ranges.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls replace(i1 - <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i2 - i1, str).</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab934c590a2bea5087c23c24514ea9be3"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">const_iterator</span> i1<span class="special">,</span> <span class="identifier">const_iterator</span> i2<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: [<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>,i1) and [i1,i2) are valid ranges and s points to an array of at least n elements</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls replace(i1 - <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i2 - i1, s, n).</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a88979bb52e7803a569eac8c0ba8557dd"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">const_iterator</span> i1<span class="special">,</span> <span class="identifier">const_iterator</span> i2<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: [<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>,i1) and [i1,i2) are valid ranges and s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls replace(i1 - <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i2 - i1, s, traits::length(s)).</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af57ebcf9b395e120e8b75a48d1c44b71"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">const_iterator</span> i1<span class="special">,</span> <span class="identifier">const_iterator</span> i2<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">CharT</span> c<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: [<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>,i1) and [i1,i2) are valid ranges.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls replace(i1 - <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i2 - i1, basic_string(n, c)).</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InputIter<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aee9ab9c909bbcaaf9ae5ad45c2f9c5e0"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">const_iterator</span> i1<span class="special">,</span> <span class="identifier">const_iterator</span> i2<span class="special">,</span> <span class="identifier">InputIter</span> j1<span class="special">,</span> <span class="identifier">InputIter</span> j2<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: [<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>,i1), [i1,i2) and [j1,j2) are valid ranges.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls replace(i1 - <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i2 - i1, basic_string(j1, j2)).</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws</p>
<p><span class="bold"><strong>Returns</strong></span>: *this </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8707c5c563d08f373379de257fc6c0a0"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">const_iterator</span> i1<span class="special">,</span> <span class="identifier">const_iterator</span> i2<span class="special">,</span> 
          <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: [<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i1) and [i1, i2) are valid ranges.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls <code class="computeroutput">replace(i1 - <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i2 - i1, sv).</code>.</p>
<p><span class="bold"><strong>Returns</strong></span>: *this. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a1f0d5446b6e2056b5d7728e58ea99435"></a><span class="identifier">replace</span><span class="special">(</span><span class="identifier">const_iterator</span> i1<span class="special">,</span> <span class="identifier">const_iterator</span> i2<span class="special">,</span> 
        <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">CharT</span> <span class="special">&gt;</span> il<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: [<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i1) and [i1, i2) are valid ranges.</p>
<p><span class="bold"><strong>Effects</strong></span>: Calls replace(i1 - <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a14df0eea2d38d32ddf20f7eb28c20f9e">begin()</a>, i2 - i1, il.begin(), il.size()).</p>
<p><span class="bold"><strong>Returns</strong></span>: *this. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9773cbe87057ffe335b65be11c07aed0"></a><span class="identifier">copy</span><span class="special">(</span><span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to copy as the smaller of n and <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - pos. s shall designate an array of at least rlen elements. The function then replaces the string designated by s with a string of length rlen whose elements are a copy of the string controlled by *this beginning at position pos. The function does not append a null object to the string designated by s.</p>
<p><span class="bold"><strong>Throws</strong></span>: if memory allocation throws, out_of_range if pos &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: rlen </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a79eadae04fe74747fd439752a84850cf"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> x<span class="special">)</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: *this contains the same sequence of characters that was in s, s contains the same sequence of characters that was in *this.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a029c198c13152631d6e7de5b1d82b5a3"></a><span class="identifier">c_str</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: The program shall not alter any of the values stored in the character array.</p>
<p><span class="bold"><strong>Returns</strong></span>: A pointer p such that p + i == &amp;operator[](i) for each i in [0,<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>].</p>
<p><span class="bold"><strong>Complexity</strong></span>: constant time. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a36bd799fe07e736b5e7076128240c04a"></a><span class="identifier">data</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: The program shall not alter any of the values stored in the character array.</p>
<p><span class="bold"><strong>Returns</strong></span>: A pointer p such that p + i == &amp;operator[](i) for each i in [0,<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>].</p>
<p><span class="bold"><strong>Complexity</strong></span>: constant time. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">CharT</span> <span class="special">*</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a55bacf909bddc52215167e54ece54c47"></a><span class="identifier">data</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: A pointer p such that p + i == &amp;operator[](i) for each i in [0,<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>].</p>
<p><span class="bold"><strong>Complexity</strong></span>: constant time. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a43dab6350c875bd5b6a22e287b0e71f3"></a><span class="keyword">operator</span> <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: a string_view to the characters in the string.</p>
<p><span class="bold"><strong>Complexity</strong></span>: constant time. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> BasicStringView<span class="special">&gt;</span> <span class="identifier">BasicStringView</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1af3fdb73c887926c17ad3242820282293"></a><span class="identifier">to_view</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Returns</strong></span>: a string_view to the characters in the string.</p>
<p><span class="bold"><strong>Complexity</strong></span>: constant time.</p>
<p><span class="bold"><strong>Note</strong></span>: This function is available to write portable code for compilers that don't support templated conversion operators. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a7e73a197810b276f3af5370cceb90d6b"></a><span class="identifier">find</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the lowest position xpos, if possible, such that both of the following conditions hold: 1) pos &lt;= xpos and xpos + str.size() &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; 2) traits::eq(at(xpos+I), str.at(I)) for all elements I of the string controlled by str.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aa0b069612b8808fee94f8e657a76ad4e"></a><span class="identifier">find</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the lowest position xpos, if possible, such that both of the following conditions hold: 1) pos &lt;= xpos and xpos + sv.size() &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; 2) traits::eq(at(xpos+I), sv.at(I)) for all elements I of the string controlled by sv.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a84741f764f00db7dcc10044f65aa8fce"></a><span class="identifier">find</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least n elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find(basic_string&lt;CharT,traits,allocator_type&gt;(s,n),pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a7c9565fbfe18a180a306b7568706f203"></a><span class="identifier">find</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find(basic_string(s), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2ed303955561c03a2acd7c1376e594f3"></a><span class="identifier">find</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find(basic_string&lt;CharT,traits,allocator_type&gt;(1,c), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aad4b729ba74a7485917aeac6886197be"></a><span class="identifier">rfind</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the highest position xpos, if possible, such that both of the following conditions obtain: a) xpos &lt;= pos and xpos + str.size() &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos+I), str.at(I)) for all elements I of the string controlled by str.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae5af62216970dce6b723fd0b57c26db5"></a><span class="identifier">rfind</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the highest position xpos, if possible, such that both of the following conditions obtain: a) xpos &lt;= pos and xpos + sv.size() &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos+I), sv.at(I)) for all elements I of the string controlled by sv.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a700b38add0aec6b32e093bc77aa283d7"></a><span class="identifier">rfind</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least n elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: rfind(basic_string(s, n), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae25e4594cfc1a913ffed0d451306b1b2"></a><span class="identifier">rfind</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: rfind(basic_string(s), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a6fce81f34ee2881f6c385eeaaab958b5"></a><span class="identifier">rfind</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: rfind(basic_string&lt;CharT,traits,allocator_type&gt;(1,c),pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5739fa86a27e4b29292ccb8b0311c7a3"></a><span class="identifier">find_first_of</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the lowest position xpos, if possible, such that both of the following conditions obtain: a) pos &lt;= xpos and xpos &lt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos), str.at(I)) for some element I of the string controlled by str.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae176b84c2e09735e1ed2af934f7cbf89"></a><span class="identifier">find_first_of</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> 
                          <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the lowest position xpos, if possible, such that both of the following conditions obtain: a) pos &lt;= xpos and xpos &lt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos), sv.at(I)) for some element I of the string controlled by sv.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab1f6235d5c289bba2000cf9a1d3b3d99"></a><span class="identifier">find_first_of</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least n elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_first_of(basic_string(s, n), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab3ade04b7fbcf346cf384637d4355fab"></a><span class="identifier">find_first_of</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_first_of(basic_string(s), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a394fb9a6fca0b6b64bf4ed3ddcf10843"></a><span class="identifier">find_first_of</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_first_of(basic_string&lt;CharT,traits,allocator_type&gt;(1,c), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ab2f6805128bde2c0fbfc5ae319f1ded4"></a><span class="identifier">find_last_of</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the highest position xpos, if possible, such that both of the following conditions obtain: a) xpos &lt;= pos and xpos &lt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos), str.at(I)) for some element I of the string controlled by str.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4fabd0246833f39e43ffe86711d88b8c"></a><span class="identifier">find_last_of</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> 
                         <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the highest position xpos, if possible, such that both of the following conditions obtain: a) xpos &lt;= pos and xpos &lt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos), str.at(I)) for some element I of the string controlled by str.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aed483069bb541560d3d980a55e63b369"></a><span class="identifier">find_last_of</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least n elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_last_of(basic_string(s, n), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1afbf884217326ef49218530e674000e79"></a><span class="identifier">find_last_of</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_last_of(basic_string&lt;CharT,traits,allocator_type&gt;(1,c),pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ae7151e5ada2de1add9192761efeb2c72"></a><span class="identifier">find_last_of</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_last_of(basic_string(s), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a39ab203973be77c88548e19e0abf79aa"></a><span class="identifier">find_first_not_of</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the lowest position xpos, if possible, such that both of the following conditions obtain: a) pos &lt;= xpos and xpos &lt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos), str.at(I)) for no element I of the string controlled by str.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4e7f8c9a2ec8716778625ad37274fdb8"></a><span class="identifier">find_first_not_of</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> 
                              <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the lowest position xpos, if possible, such that both of the following conditions obtain: a) pos &lt;= xpos and xpos &lt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos), sv.at(I)) for no element I of the string controlled by sv.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a88e52daa830b4dae3ff6c49ba1aa6ec3"></a><span class="identifier">find_first_not_of</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_first_not_of(basic_string(s, n), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2fbc504acf66988476eb3b0ccd3624ab"></a><span class="identifier">find_first_not_of</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_first_not_of(basic_string(s), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a4a76bd8e5276749ffaef79ddf934e990"></a><span class="identifier">find_first_not_of</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_first_not_of(basic_string(1, c), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a86888c062a5cf816bcc1923fd1dd07ed"></a><span class="identifier">find_last_not_of</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the highest position xpos, if possible, such that both of the following conditions obtain: a) xpos &lt;= pos and xpos &lt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos), str.at(I)) for no element I of the string controlled by str.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1aef2daa5d85ca539ef4ec970e53c51095"></a><span class="identifier">find_last_not_of</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> 
                             <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the highest position xpos, if possible, such that both of the following conditions obtain: a) xpos &lt;= pos and xpos &lt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>; b) traits::eq(at(xpos), sv.at(I)) for no element I of the string controlled by sv.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: xpos if the function can determine such a value for xpos. Otherwise, returns npos. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a5f9d00dd91423c540559b39b435d9ee9"></a><span class="identifier">find_last_not_of</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least n elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_last_not_of(basic_string(s, n), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac9cde767c9d6caa4fbde0673e8cdea4a"></a><span class="identifier">find_last_not_of</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_last_not_of(basic_string(s), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a06d65b1a8beca0b0f7588e54c4ab8d72"></a><span class="identifier">find_last_not_of</span><span class="special">(</span><span class="identifier">CharT</span> c<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: find_last_not_of(basic_string(1, c), pos). </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9e1cafccf4df6c8d6dc9a1442808665c"></a><span class="identifier">substr</span><span class="special">(</span><span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">size_type</span> n <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: Requires: pos &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to copy as the smaller of n and <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - pos.</p>
<p><span class="bold"><strong>Throws</strong></span>: If memory allocation throws or out_of_range if pos &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a>.</p>
<p><span class="bold"><strong>Returns</strong></span>: basic_string&lt;CharT,traits,allocator_type&gt;(<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a55bacf909bddc52215167e54ece54c47">data()</a>+pos,rlen). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a12b4a4bdf398ca3775b30e9e105642f0"></a><span class="identifier">compare</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to compare as the smaller of <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and str.size(). The function then compares the two strings by calling traits::compare(<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a55bacf909bddc52215167e54ece54c47">data()</a>, str.data(), rlen).</p>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: The nonzero result if the result of the comparison is nonzero. Otherwise, returns a value &lt; 0 if <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> &lt; str.size(), a 0 value if <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> == str.size(), and value &gt; 0 if <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> &gt; str.size() </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a525b923758190dd5f4c02e00e2528a98"></a><span class="identifier">compare</span><span class="special">(</span><span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: compare(basic_string(sv)). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8fa3439729d8a26caae78581b832fe6c"></a><span class="identifier">compare</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to compare as the smaller of (this-&gt;<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> - pos1), n1 and str.size(). The function then compares the two strings by calling traits::compare(<a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a55bacf909bddc52215167e54ece54c47">data()</a>+pos1, str.data(), rlen).</p>
<p><span class="bold"><strong>Throws</strong></span>: out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Returns</strong></span>:basic_string(*this,pos1,n1).compare(str). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a2a733082f2434674a292e8bff0eb874e"></a><span class="identifier">compare</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> 
              <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Throws</strong></span>: out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Returns</strong></span>:basic_string(*this,pos1,n1).compare(sv). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a221da0d60dbdd5475ed113abaf547398"></a><span class="identifier">compare</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1basic__string.html" title="Class template basic_string">basic_string</a> <span class="special">&amp;</span> str<span class="special">,</span> 
            <span class="identifier">size_type</span> pos2<span class="special">,</span> <span class="identifier">size_type</span> n2 <span class="special">=</span> <span class="identifier">npos</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and pos2 &lt;= str.size()</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to copy as the smaller of</p>
<p><span class="bold"><strong>Throws</strong></span>: out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or pos2 &gt; str.size()</p>
<p><span class="bold"><strong>Returns</strong></span>: basic_string(*this, pos1, n1).compare(basic_string(str, pos2, n2)). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span><span class="special">,</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> BasicStringView<span class="special">&gt;</span> 
  <span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a953ef6d418518d4fd5e6a262cba791a3"></a><span class="identifier">compare</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> 
              <span class="identifier">BasicStringView</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> sv<span class="special">,</span> <span class="identifier">size_type</span> pos2<span class="special">,</span> 
              <span class="identifier">size_type</span> n2<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &lt;= <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and pos2 &lt;= str.size()</p>
<p><span class="bold"><strong>Effects</strong></span>: Determines the effective length rlen of the string to copy as the smaller of</p>
<p><span class="bold"><strong>Throws</strong></span>: out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> or pos2 &gt; sv.size()</p>
<p><span class="bold"><strong>Returns</strong></span>: basic_string(*this, pos1, n1).compare(BasicStringView&lt;CharT, Traits&gt;(sv, pos2, n2)). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ac6d9dd47f1d20f568819e07a10518e6a"></a><span class="identifier">compare</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Throws</strong></span>: Nothing</p>
<p><span class="bold"><strong>Returns</strong></span>: compare(basic_string(s)). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a8c69b162bdc6612fa337e16ca7e9970c"></a><span class="identifier">compare</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n2<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and s points to an array of at least n2 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Returns</strong></span>: basic_string(*this, pos, n1).compare(basic_string(s, n2)). </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1a9d488afbf7fb5a3081a6cf3f2d65422e"></a><span class="identifier">compare</span><span class="special">(</span><span class="identifier">size_type</span> pos1<span class="special">,</span> <span class="identifier">size_type</span> n1<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> s<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p><span class="bold"><strong>Requires</strong></span>: pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a> and s points to an array of at least traits::length(s) + 1 elements of CharT.</p>
<p><span class="bold"><strong>Throws</strong></span>: out_of_range if pos1 &gt; <a class="link" href="classboost_1_1container_1_1basic__string.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1basic__string_1ad805839f0dfc45ceb357eb348ab85da0">size()</a></p>
<p><span class="bold"><strong>Returns</strong></span>: basic_string(*this, pos, n1).compare(basic_string(s, n2)). </p>
</li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2009-2018 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1container_1_1pmr_1_1basic__string__of.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.string_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="string_8hpp_1aa58e92daa0c494234e26f93e1a1b4d77.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
